]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ripples: Add destroy() method and remove them when unneeded
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 30 Aug 2019 23:40:53 +0000 (01:40 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 9 Sep 2019 19:28:18 +0000 (19:28 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700

js/ui/layout.js
js/ui/ripples.js

index fe4248766ed0e7db6e93a6eb700b761e65b892c8..79c51cf5c53c614096ff077189fc0e06d69bd6ec 100644 (file)
@@ -1224,6 +1224,8 @@ var HotCorner = class HotCorner {
 
         if (this.actor)
             this.actor.destroy();
+
+        this._ripples.destroy();
     }
 
     _toggleOverview() {
index ef9cbdea02d38cd68d3bb5dfee6ab5874c4b886a..99c1dfc533396e62d65d18d56d804a060155b6cc 100644 (file)
@@ -34,6 +34,12 @@ var Ripples = class Ripples {
         this._ripple3.set_pivot_point(px, py);
     }
 
+    destroy() {
+        this._ripple1.destroy();
+        this._ripple2.destroy();
+        this._ripple3.destroy();
+    }
+
     _animRipple(ripple, delay, duration, startScale, startOpacity, finalScale) {
         // We draw a ripple by using a source image and animating it scaling
         // outwards and fading away. We want the ripples to move linearly